#include "proxyfactory.h"

ProxyFactory::ProxyFactory(QObject *parent) :
    QObject(parent)
{
}

ProxyDescription* ProxyFactory::getPD(int key){
    ProxyDescription* desc=proxyMap.value(key);
    if(desc!=NULL){
        return desc;
    }
    desc=new ProxyDescription(key);
    proxyMap.insert(key, desc);
    emit newPD(key);
    return desc;
};
